<?php
class ujn_runtime {

	const O_PLATFORM_API = '';

	private static $params = array();

	static function checkParam($param_name, $value) {
		return isset(self::$params[$param_name]) ? true : false;
	}

	static function getAllParam() {
		return self::$params;
	}
	static function getParam($param_name) {
		return isset(self::$params[$param_name]) ? self::$params[$param_name] : false;
	}

	static function setParam($param_name, $value) {
		self::$params[$param_name] = $value;
	}

	static function appendParam($param_name, $key, $value) {
		if(isset(self::$params[$param_name]) && is_array(self::$params[$param_name])) {
			self::$params[$param_name][$key] = $value;
		} else {
			self::$params[$param_name] = array( $key => $value );
		}
	}

	private static $_spliat_alias = null;
	static function getSplitAlias() {
		return self::$_spliat_alias;
	}
	static function setSplitAlias($spliat_alias) {
		self::$_spliat_alias = $spliat_alias;
	}
}